package com.waves.spring.boot.autoConfiguration;

import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.ConfigurationClassPostProcessor;
import org.springframework.context.annotation.Import;
import org.springframework.context.support.GenericApplicationContext;

//@Configuration
@Import(MyImportSelector.class)
public class EnableAutoConfiguration1 {

    public static void main(String[] args) {
        GenericApplicationContext context = new GenericApplicationContext();
        context.registerBean("configuration1", EnableAutoConfiguration1.class);
        context.registerBean(ConfigurationClassPostProcessor.class);

        context.refresh();
        for (String name : context.getBeanDefinitionNames()) {
            System.out.println(name);
        }
    }


}
